# coding=utf-8
from sutras import models, serializers


def get_admin_list():
    """
    获取管理员列表
    """
    admin_objs = models.CustomUser.objects.filter(
        is_admin=True).order_by("-join_time")
    admins = serializers.AdminUserList(admin_objs, many=True).data
    return admins
